package com.jojo.bubble.service.impl;

import com.jojo.bubble.entity.Banner;
import com.jojo.bubble.dao.BannerDao;
import com.jojo.bubble.service.BannerService;
import org.springframework.stereotype.Service;

import java.util.List;

import javax.annotation.Resource;

/**
 * banner表(Banner)表服务实现类
 *
 * @author jojo
 * @since 2023-07-21 04:47:28
 */
@Service("bannerService")
public class BannerServiceImpl implements BannerService {
    @Resource
    private BannerDao bannerDao;

    @Override
    public int count(Banner record) {
        return this.bannerDao.count(record);
    }

    @Override
    public int insert(Banner record) {
        return this.bannerDao.insert(record);
    }

    @Override
    public int update(Banner record) {
        return this.bannerDao.update(record);
    }

    @Override
    public Banner getInfo(int id) {
        return this.bannerDao.queryById(id);
    }

    @Override
    public List<Banner> getList(Banner record) {
        return this.bannerDao.getList(record);
    }

    @Override
    public int delete(int id) {
        return this.bannerDao.delete(id);
    }
}
